package com.chinaunicom.structure.composite;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2022/7/29 15:47
 * Description: 叶子节点
 */

public class Leaf implements Component{
    private String name;
    
    public Leaf(String name){
        super();
        this.name = name;
    }
    
    @Override
    public void execute() {
        System.out.println("leaf ......" + this.name);    
    }
}
